﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace QASPRibbon.Extensions
{
    internal static class XElementExtensions
    {
        internal static string AttributeValueString(this XElement xml, string attribute, string defaultValue)
        {
            var attr = xml.Attribute(attribute);
            if (attr == null)
                return defaultValue;
                return attr.Value;
        }
    }
}
